package com.example.javabasic.shejimoshi.gongchangfangfa.demo1;
//工厂方法模式
public class Test {
    public static void main(String[] args) {
        AbstractFactory factory = new ConcreteFactoryA();
        Product product = factory.newProduct();
        product.show();
    }
}
